<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>ECharts</title>
        <!-- 引入 echarts.js -->
        <script src="echarts.min.js"></script>
        </head>
        <body>
        <!-- 为ECharts准备一个具备大小（宽高）的Dom -->
        <div id="main" style="width: 600px;height:400px;"></div>
        <script type="text/javascript">
        // 基于准备好的dom，初始化echarts实例
        var myChart = echarts.init(document.getElementById('main'));
 
        // 指定图表的配置项和数据
        var option = {
        		  title: {
        			    text: 'Referer of a Website',
        			    subtext: 'Fake Data',
        			    left: 'center'
        			  },
        			  tooltip: {
        			    trigger: 'item'
        			  },
        			  legend: {
        			    orient: 'vertical',
        			    left: 'left'
        			  },
        			  series: [
        			    {
        			      name: 'Access From',
        			      type: 'pie',
        			      radius: '50%',
        			      data: [
        			        {value:97134, name:'天津市'},
        			{value:96992, name:'吉林'},
        			{value:96619, name:'内蒙古'},
        			{value:96743, name:'四川'},
        			{value:96893, name:'上海市'},
        			{value:97162, name:'浙江'},
        			{value:96991, name:'青海'},
        			{value:96674, name:'河北'},
        			{value:96377, name:'云南'},
        			{value:96587, name:'香港'},
        			{value:96494, name:'宁夏'},
        			{value:96822, name:'甘肃'},
        			{value:96802, name:'江苏'},
        			{value:96488, name:'安徽'},
        			{value:96679, name:'江西'},
        			{value:97125, name:'湖南'},
        			{value:97116, name:'西藏'},
        			{value:96625, name:'福建'},
        			{value:96911, name:'北京市'},
        			{value:96517, name:'陕西'},
        			{value:96861, name:'山西'},
        			{value:96675, name:'广西'},
        			{value:97338, name:'广东'},
        			{value:96710, name:'澳门'},
        			{value:96943, name:'湖北'},
        			{value:97123, name:'山东'},
        			{value:96543, name:'台湾'},
        			{value:97169, name:'黑龙江'},
        			{value:96714, name:'辽宁'},
        			{value:96960, name:'新疆'},
        			{value:96813, name:'重庆市'},
        			{value:96722, name:'海南'},
        			{value:96842, name:'贵州'},
        			{value:96980, name:'河南'}
        			      ],
        			      emphasis: {
        			        itemStyle: {
        			          shadowBlur: 10,
        			          shadowOffsetX: 0,
        			          shadowColor: 'rgba(0, 0, 0, 0.5)'
        			        }
        			      }
        			    }
        			  ]
        			};



        // 使用刚指定的配置项和数据显示图表。
        myChart.setOption(option);
        </script>
    </body>
</html>